package com.xms.datacore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xms.core.exception.XmsException;

import java.sql.SQLException;
import java.util.Collection;

/**
 * <p>
 * ICreaterService
 * </p>
 *
 * @author migo
 * @since 2021/9/2
 */
public interface ICreaterService<T> {
    IService<T> getService();
    boolean create(T entity) throws SQLException, XmsException;
    boolean createMany(Collection<T> entityList) throws SQLException, XmsException;
    void rollBack();
}
